<template>
<h3>Home组件---{{count}}</h3>
<button type="button" class="btn btn-primary" @click="count+=1">+1</button>
</template>

<script>
export default{
    name:'MyHome',
    data(){
        return{
            count:0,
        }
    },
    created() {
        console.log("created")
    },
    unmounted() {
        console.log('unmounted')
    },
}
</script>

<style lang="less" scoped></style>